<!-- Box -->
<div class="box">
	<!-- Box Head -->
	<div class="box-head">
		<h2 class="left">Current Articles</h2>
		<div class="right">
			<label>search articles</label>
			<input type="text" class="field small-field" />
			<input type="submit" class="button" value="search" />
		</div>
	</div>
	<!-- End Box Head -->
	<!-- Table -->
	<div class="table">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<th width="13">
				<input type="checkbox" class="checkbox" />
				</th>
				<th>Title</th>
				<th>Date</th>
				<th>Added by</th>
				<th width="110" class="ac">Content Control</th>
			</tr>
			<tr>
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
			<tr class="odd">
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
			<tr>
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
			<tr class="odd">
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
			<tr>
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
			<tr class="odd">
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
			<tr>
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
			<tr class="odd">
				<td>
				<input type="checkbox" class="checkbox" />
				</td>
				<td><h3><a href="#">Lorem ipsum dolor sit amet, consectetur.</a></h3></td>
				<td>12.05.09</td>
				<td><a href="#">Administrator</a></td>
				<td><a href="#" class="ico del">Delete</a><a href="#" class="ico edit">Edit</a></td>
			</tr>
		</table>
		<!-- Pagging -->
		<div class="pagging">
			<div class="left">
				Showing 1-12 of 44
			</div>
			<div class="right">
				<a href="#">Previous</a>
				<a href="#">1</a>
				<a href="#">2</a>
				<a href="#">3</a>
				<a href="#">4</a>
				<a href="#">245</a>
				<span>...</span>
				<a href="#">Next</a>
				<a href="#">View all</a>
			</div>
		</div>
		<!-- End Pagging -->
	</div>
	<!-- Table -->
</div>
<!-- End Box -->


<script type="text/javascript">
	function addData(base_url) {
		dataString = $("#frm").serialize();
		$.ajax({
			type : "POST",
			url : base_url+"login/test",
			async : false,
			data : dataString,
			dataType : "html",
			success : function(r, s) {
				$('#display_result').html(r);
			}
		});
	}
</script>
<div id="display_result">
	<?php echo $query;?>
</div>
<form method="post" id="frm" action="#">
	Name :
	<br>
	<input type="text" id="name" name="name" />
	<br>
	Email :
	<br>
	<input type="text" id="email" name="email" />
	<br>
	<input type="button" value="save" onclick="addData('<?php echo base_url();?>')" />
</form>
